#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
struct node{int d, u, a;}c[N];
int b[N];
int main(){
    freopen("detect.in", "r", stdin);
    freopen("detect.out", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    int t; cin >> t;
    while(t--){
        int n, m, l, v; cin >> n >> m >> l >> v;
        for(int i = 1; i <= n; i++) cin >> c[i].d >> c[i].u >> c[i].a;
        for(int i = 1; i <= m; i++) cin >> b[i];

    }
    return 0;
}
